<script>
	import config from '@/config/config.js';
	import {getToken} from '@/utils/auth.js'
	export default {
		onLaunch: function() {
			this.initApp()
		},
		onShow() {
			console.log(
			  `Update Version %cPluginsVersion%cv1.0.33%c\n
			%cDcloud Plugins: %chttps://ext.dcloud.net.cn/plugin?id=10298!%c\n
			%cYuque.com:%chttps://www.yuque.com/u21729372/kwgz8c%c`,
			  "background-color: #dc7ced; padding: 7px; color: #fff;",
			  "background-color: #8afbfc; color: #000; padding: 7px;",
			  "background-color: transparent; color: #000; padding: 7px;",
			  "background-color: #fc9a59; color: #000; padding: 7px;",
			  "background-color: #fc91d3; color: #000; padding: 7px;",
			  "background-color: transparent; color: #000; padding: 7px;",
			  "background-color: #fcf0a7; color: #000; padding: 7px;",
			  "background-color: #14fcf5; color: #000; padding: 7px;",
			  ""
			);
			console.log(`Blessing Everyone %c希望大家在2023新的一年里如虎添翼事业步步高升!%c也希望各位老板在追求财富和爱情的道路上顺风顺水一路长虹!`,'background-color: #ea7ded; padding: 7px; color: #fff;','background-color: #5ffcef; color: #000; padding: 7px;');
		},
		methods: {
			// 初始化应用
			initApp() {
				this.initConfig()
				//#ifdef H5
				this.checkLogin()
				//#endif
			},
			// 挂载全局配置信息
			initConfig() {
				this.globalData.config = config;
			},
			// 检查一哈登录状态(H5)
			checkLogin() {
				if (!getToken()) {
					// this.$tab.reLaunch('/pages/login')
				}
			}
		}
	}
</script>
<style>
	page {
		margin: 0;
		padding: 0;
		height: 100%;
		width: 100%;
	}
</style>
<style lang="scss">
	@import "uview-ui/index.scss";
	// 在使用animate.css的时候注意一定要把animate.css文件中的 :root选择器改为 page (切记)。
	@import '@/static/animate/animate.css';  
	// 去掉页面滚动条
	::-webkit-scrollbar {
		display: none !important;
		width: 0 !important;
		height: 0 !important;
		-webkit-appearance: none;
		background: transparent;
	}
</style>
